package com.keith.asteria.controller.hystrix;

import com.keith.asteria.controller.remoteApi.RemoteSysUserApi;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;
import system.SysFunc;
import system.SysUser;
import utils.ResponseUtil;

import java.util.List;
import java.util.Map;

/**
 * @ClassName RemoteHystrix
 * @Author chenli
 * @Time 2018/11/8
 **/
@Component
public class RemoteHystrix implements RemoteSysUserApi {

	@Override
	public SysUser findUser(@RequestParam Integer id) {
		return new SysUser();
	}

	@Override
	public Map<String, Object> userSave(SysUser user) {
		return null;
	}

	@Override
	public Map<String, Object> userUpdate(SysUser user) {
		return null;
	}

	@Override
	public Map<String, Object> userLogin(SysUser user) {
		return ResponseUtil.returnResp(400, "登录失败！");
	}

	@Override
	public SysUser findUserByName(SysUser user) {
		return null;
	}

	@Override
	public List<SysFunc> findUserMenus(Integer id) {
		return null;
	}
}
